package com.cloud.common.interceptor;

import com.cloud.common.util.AopUtil;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

@Slf4j
@Aspect
@Component
public class LogDebugInterceptor {

    @Around("@annotation(com.cloud.common.annotation.LogDebug)")
    public Object execute(ProceedingJoinPoint point) throws Throwable {
        return AopUtil.doAround(point, null);
    }

}
